import lombok.Data;

/**
 * @author linyu.dai
 * @project rpc
 * @description
 * @creat 2022/12/18 16:15:32
 */
public class Student {

    private String name;

    private Integer age;

    private String info;

    public void set(String name,Integer age){
        this.age = age;
        this.name = name;
    }

    public boolean checkAge(){
        return this.age > 18;
    }

    public boolean checkName(){
        return this.name.contains("a");
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public String getInfo() {
        return info;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", info='" + info + '\'' +
                '}';
    }
}
